jQuery(function($){
		$('.error_msg,.sucess_msg').hide();
		$('.error_msg,.sucess_msg').slideDown('slow');
		$('.error_msg,.sucess_msg').click(function(){
			$(this).slideUp('slow');											  
		});
		$('.nav-main > li').hover(function(){
		$('.nav-main > li').addClass('disable');
		$(this).removeClass('disable').addClass('current-hover');
  		},function(){
			$('.nav-main > li').removeClass('disable');
			$('.nav-main > li').removeClass('current-hover');
			})
		$('.login_btn').click(function(){
			$('.quick_login').slideDown('slow');
		})
		$('.quick_login .close').click(function(){
			$('.quick_login').slideUp('slow');
		})
		
    	$('.mycarousel').jcarousel({
        	vertical: true,
        	scroll: 2
		});
		var cartAmount = Number($('.counter .count').html());
		
		// on dom ready fetch current payment shipping value and append it to total amount area
		$('.counter .count').html(parseFloat(cartAmount+Number($('.payment-list .lists input:radio:checked').next('label').find('.counter').html())).toFixed(2));
		
		// label on click fetch current payment shipping method to append on total amount area.
		$('.payment-list .lists > li label').click(function(){
			$('.payment-list .lists li').removeClass('current');
			$('.payment-list .lists li label').find('.txt').text('Click here');
			$('.counter .count').html(parseFloat(cartAmount+Number($(this).find('.counter').html()),10).toFixed(2));
			$(this).parent('div').parent('li').addClass('current').find('.txt').text('Activated');
			$(this).prev('input').trigger('click');
			$('.payment-list .lists li .sticky').hide();
			$('.payment-list .lists li.current .sticky').show();
			
		})
		
		$('.forget_pass').click(function(){
				$('.login_btn').trigger('click');						 
		})
		$('.payment-list .lists input:radio:checked').parent('div').parent('li').addClass("current").find('.txt').text('Activated');
		$('.payment-list .lists li .sticky').hide();
		$('.payment-list .lists li.current .sticky').show();
})

/*
CSS Browser Selector v0.3.2
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3')?g+' ff3':is('gecko/')?g:/opera(\s|\/)(\d+)/.test(ua)?'opera opera'+RegExp.$2:is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);

